package ru.evga.gwt.lib.common.client.request.params;

import ru.evga.gwt.lib.common.client.domain.BaseEntityDto;



public class SaveEntityParams<T extends BaseEntityDto>
    extends BaseServiceParams
{
    protected SaveEntityParams()
    {
    }

    static public final native <T extends BaseEntityDto> SaveEntityParams<T> createEmptyParams() /*-{
        return eval("({})");
    }-*/;

    // JSNI methods 
    public final native void setEntityName(String entityName) /*-{
        this.entityName = entityName;
    }-*/;

    public final native String getEntityName() /*-{
        return this.entityName;
    }-*/;

    public final native void setEntity(T entity) /*-{
        this.entity = entity;
    }-*/;

    public final native T getEntity() /*-{
        return this.entity;
    }-*/;
}
